import { PipeTransform, Injectable, ArgumentMetadata } from '@nestjs/common';

@Injectable()
export default class ValidationPipe implements PipeTransform {
  transform(value: any, metadata: ArgumentMetadata) {
    console.log(metadata)
    // { metatype: [Function: String], type: 'param', data: 'id' }
    return  value.includes('1') ? 'number-123' : 'string-456';
  }
}
